Automatically Moving and Sizing Objects

To move or size an object automatically whenever the user resizes the enclosing window:

  1. Select the object, choose Tools > Inspector, and choose Size from the pop-up menu at the top of the Inspector.

  2. In the Autosizing section, toggle between straight and springy lines by clicking them.

    Lines outside the object control the object's position, and lines inside the object control the object's size. Straight lines keep the same position or size, and springy lines change the position or size to keep the same proportions. For more information, see Setting Autosize Attributes.

  3. Test the interface.

    To make sure the objects resize themsleves as you want, you must resize the window yourself. You can test the interace by choosing Document > Test Interface, then resizing your window. When you're done, click the power switch icon in the menu bar.

Setting Autosize Attributes

In the Autosizing section of the Size display of the Inspector, you can choose how an object resizes itself whenever the user resizes the enclosing window.

When you're editing a window's attributes, the lines outside the window determine the distance between the window and the screen's edge:

When you're editing another type of object, there are lines both inside and outside the box that represents the object. The lines inside the box determine how the object changes its own size when the superview is resized:

The lines outside the box determine how the object changes the distance between its edges and the superview's edges when the superview is resized:

Setting a Window's Minimum Size

If a user keeps shrinking a window, its components may be resized until they're too small to use. To set a minimum size for a window:

Related Topics

© 1999 Apple Computer, Inc.